/**
 * Copyright (C) 2022
 * All rights reserved, Designed By www.joolun.com
 * 注意：
 * 本软件为www.joolun.com开发研制，项目使用请保留此说明
 */
package com.joolun.tennis.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.joolun.tennis.domain.ClassOrderInfo;

import java.io.Serializable;

/**
 * 商城订单
 *
 * @author JL
 * @date 2019-09-10 15:21:22
 */
public interface ClassOrderInfoService extends IService<ClassOrderInfo> {

	IPage<ClassOrderInfo> page1(IPage<ClassOrderInfo> page, Wrapper<ClassOrderInfo> queryWrapper);

	/**
	 * 下单
	 * @param placeOrderDTO
	 */
//	ClassOrderInfo orderSub(PlaceOrderDTO placeOrderDTO);

	IPage<ClassOrderInfo> page2(IPage<ClassOrderInfo> page, ClassOrderInfo orderInfo);

	ClassOrderInfo getById2(Serializable id);

	/**
	 * 取消订单
	 * @param orderInfo
	 */
	void orderCancel(ClassOrderInfo orderInfo);
//	/**
//	 * 订单收货
//	 * @param orderInfo
//	 */
//	void orderReceive(ClassOrderInfo orderInfo);

	/**
	 * 处理订单回调
	 * @param orderInfo
	 */
	void notifyOrder(ClassOrderInfo orderInfo);

}
